package com.cs.enums;


/**
 * Created by IntelliJ IDEA.
 * 响应状态码
 *
 * @author ouyangzhixiang
 * @date 2018/7/4
 */

public enum ResultCodeEnum {
    /**
     * 成功提示信息
     */
    SUCCESS(0, "SUCCESS"),
    /**
     * 失败提示信息
     */
    ERROR(1, "ERROR");

    private Integer code;

    private String desc;

    ResultCodeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
